﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/TLFLayout.Master" AutoEventWireup="true" CodeBehind="VehicleDispatchFormList.aspx.cs" Inherits="DingHeng.TransportationManagement.WebSite.Biz.VehicleDispatchFormList" %>

<%@ Register Src="~/userControls/leftNav.ascx" TagPrefix="uc1" TagName="leftNav" %>


<%@ Register Src="~/userControls/CutPageControl.ascx" TagPrefix="uc2" TagName="CutPageControl" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../resource/script/WdatePicker.js" type="text/javascript"></script>
    <script>
        $(function () {
            setTab("派车单管理", "查询派车单");
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderTop" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderLeft" runat="server">
    <uc1:leftNav runat="server" ID="leftNav" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderSecondNavigation" runat="server">
    <div class="secondaryNavigation">
        <a href="#">主页</a> >> 
        <asp:Label runat="server" ID="lblHomeTitle"></asp:Label>
    </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolderRight" runat="server">
    <div id="mainContent" class="yui3-cssbase">
        <table class="noborderTable" style="margin-left: 5px">
            <tr>
                <td>车牌号:</td>
                <td>
                    <asp:TextBox runat="server" ID="txtLicensePlateNo"></asp:TextBox>
                </td>
                <td>车辆编号:</td>
                <td>
                    <asp:TextBox runat="server" ID="txtVehicleNo"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>派车日期开始:</td>
                <td>
                    <asp:TextBox ID="txtVehicleDispatchDateStart" runat="server" class="datePickerInput" onClick="WdatePicker()"></asp:TextBox>
                </td>
                <td>派车日期结束:</td>
                <td>
                    <asp:TextBox ID="txtVehicleDispatchDateEnd" runat="server" class="datePickerInput" onClick="WdatePicker()"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="align-content: center;" colspan="4">
                    <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="btn-common" OnClick="btnSearch_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:GridView ID="gridVehicelDispatchList" runat="server" class="listTable" AutoGenerateColumns="false" DataKeyNames="ID"
                        ShowHeaderWhenEmpty="true">
                        <HeaderStyle CssClass="titleTr" />
                        <Columns>
                            <asp:TemplateField HeaderStyle-Width="100" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                <HeaderTemplate>编号</HeaderTemplate>
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlCode" Target="_blank" runat="server" NavigateUrl='<%# "VehicleDispatchFormView.aspx?VehicleDispatchFormID=" + DataBinder.Eval(Container.DataItem,"ID")%>' Text='<%# DataBinder.Eval(Container.DataItem,"Code")%>'></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderStyle-Width="80" DataField="LicensePlateNo" HeaderText="车牌号" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                <HeaderStyle Wrap="False"></HeaderStyle>
                                <ItemStyle Wrap="False"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderStyle-Width="50" DataField="StatusName" HeaderText="状态" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                <HeaderStyle Wrap="False"></HeaderStyle>
                                <ItemStyle Wrap="False"></ItemStyle>
                            </asp:BoundField>
                            <%--<asp:TemplateField HeaderStyle-Width="200" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                    <HeaderTemplate>车牌号</HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="gridlbtnLicensePlateNo" runat="server" CommandName="Update"><%# Eval("LicensePlateNo")%></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>--%>
                            <asp:TemplateField HeaderStyle-Width="200" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                    <HeaderTemplate>派车时间</HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lblDispatchTime" Text="<%# ((DateTime)Eval("DispatchTime")).ToString("yyyy-MM-dd HH:mm:ss")%>"></asp:Label>
                                        <asp:LinkButton ID="gridlbtnLicensePlateNo" runat="server" CommandName="Update"><%# Eval("LicensePlateNo")%></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            <asp:BoundField HeaderStyle-Width="100" DataField="DispatchTime" HeaderText="派车时间" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                <HeaderStyle Wrap="False"></HeaderStyle>
                                <ItemStyle Wrap="False"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderStyle-Width="50" DataField="Driver" HeaderText="司机" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                <HeaderStyle Wrap="False"></HeaderStyle>
                                <ItemStyle Wrap="False"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderStyle-Width="100" DataField="DriverContactNo" HeaderText="联系电话" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                <HeaderStyle Wrap="False"></HeaderStyle>
                                <ItemStyle Wrap="False"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField HeaderStyle-Width="50" DataField="PrincipalName" HeaderText="负责人" HeaderStyle-Wrap="False" ItemStyle-Wrap="False">
                                <HeaderStyle Wrap="False"></HeaderStyle>
                                <ItemStyle Wrap="False"></ItemStyle>
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align:right;">
                    <uc2:CutPageControl ID="CutPageControl" OnPageSelected="CutPageControl_PageSelected"
                        runat="server" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
